package org.example.order.controller;

import org.example.entity.Order;
import org.example.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/order")
@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @PostMapping()
    public void addOrder(@RequestBody Order order) {
        orderService.addOrder(order);
    }

}
